//
//  JWTAusleseCell.m
//  见闻新闻
//
//  Created by brother on 16/3/15.
//  Copyright © 2016年 JoanBoat. All rights reserved.
//

#import "JWTAusleseCell.h"
#import "JWAuslese.h"
#import <UIImageView+WebCache.h>

@interface JWTAusleseCell ()

@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@property (weak, nonatomic) IBOutlet UILabel *nameLabel;

@property (weak, nonatomic) IBOutlet UIImageView *picImageView;

@end

@implementation JWTAusleseCell


+ (JWTAusleseCell *)ausleseWithTabelView:(UITableView *)tableView {
    static NSString *identifier = @"AusleseCell";
    JWTAusleseCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier];
    if (cell == nil) {
        UINib *nib = [UINib nibWithNibName:@"JWTAusleseCell" bundle:nil];
        cell = [[nib instantiateWithOwner:nil options:nil] lastObject];
    }
    return cell;
}


- (void)setAuslese:(JWAuslese *)auslese {
    _auslese = auslese;
    
    self.titleLabel.text = auslese.jx_title;
    //NSLog(@"%@",auslese.jx_title);
    self.nameLabel.text = auslese.jx_name;
    [self.picImageView sd_setImageWithURL:[NSURL URLWithString:auslese.jx_pic] placeholderImage:nil];
}












- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
